package com.back.datatype;

import java.util.Scanner;

/**
 * if udon
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/7/13 下午5:05
 */
public class If01 {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        System.out.println("请输入您的年龄 ");
        int a = s.nextInt();
        if(a <10){
            if(a < 5){
                System.out.println("幼儿");
            }else{
                System.out.println("小屁孩");
            }
            //hhhhhhhhhh
        }else if(a < 20){
            System.out.println("少年");
        }else if(a < 30){
            System.out.println("青年");
        }else if(a < 40){
            System.out.println("中年");
        }else{
            System.out.println("老年");
        }
    }

}
